<template>
 <div class="good-list-item">
   <img :src="goodsItem.show.img" alt="">
   <div class="goods-info">
     <p>{{goodsItem.title}}</p>
     <span class="price">{{goodsItem.price}}</span>
     <i><img src="~assets/images/common/collect.svg" alt=""></i>
     <span class="collect">{{goodsItem.cfav}}</span>
   </div>
 </div>
</template>

<script>
export default {
  name: "GoodsListItem",
  props:{
    goodsItem:{
      type:Object,
      default(){
        return {}
      }
    }
  }
}
</script>

<style lang="less" scoped>
.good-list-item{
  width:45%;

  img{
    width: 100%;
    border-radius: 10px;
  }
  .goods-info{
    font-size: 12px;
    text-align: center;
    i{
      img{
        width: 12px;
      }
    }
    p{
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      margin-bottom: 3px;
    }
    .price{
      color: var(--color-high-text);
      position: relative;
      right: 3px;
    }
  }
}
</style>
